package versuch.client;

import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.HasVerticalAlignment;
import com.google.gwt.user.client.ui.Label;

public class MainPage extends DialogBox {

	public MainPage() {
		
		FlexTable flexTable = new FlexTable();
		setWidget(flexTable);
		flexTable.setSize("380px", "454px");
		
		Label lblEistEvaluationHomepage = new Label("EIST EVALUATION HOMEPAGE");
		flexTable.setWidget(0, 0, lblEistEvaluationHomepage);
		
		Label lblNewLabel = new Label("Current Evaluations");
		flexTable.setWidget(2, 0, lblNewLabel);
		
		Label lblNewLabel_1 = new Label("Statistics");
		flexTable.setWidget(2, 2, lblNewLabel_1);
	
		
		VerticalPanel verticalPanel = new VerticalPanel();
		flexTable.setWidget(3, 0, verticalPanel);
		
		Button button1 = new Button("New button");
		verticalPanel.add(button1);
		
		Button button2 = new Button("New button");
		verticalPanel.add(button2);
		
		Button button3 = new Button("New button");
		verticalPanel.add(button3);
		
		VerticalPanel verticalPanel_1 = new VerticalPanel();
		flexTable.setWidget(3, 2, verticalPanel_1);
		
		Button button11 = new Button("New button");
		button11.setText("Lecture 1");
		verticalPanel_1.add(button11);
		button11.addStyleName(".StyleButton");
		
		Button button12 = new Button("New button");
		button12.setText("Lecture 2");
		verticalPanel_1.add(button12);
		
		Button button13 = new Button("New button");
		button13.setText("Lecture 3");
		verticalPanel_1.add(button13);
		
		Button button14 = new Button("New button");
		button14.setText("Lecture 4");
		verticalPanel_1.add(button14);
		
		Button button16 = new Button("New button");
		button16.setText("Lecture 5");
		verticalPanel_1.add(button16);
		
		Button button17 = new Button("New button");
		button17.setText("Lecture 6");
		verticalPanel_1.add(button17);
		
		Button button15 = new Button("New button");
		button15.setText("Lecture 7");
		verticalPanel_1.add(button15);
		
		Button button18 = new Button("New button");
		button18.setText("Lecture 8");
		verticalPanel_1.add(button18);
		
		Button button19 = new Button("New button");
		button19.setText("Lecture 9");
		verticalPanel_1.add(button19);
		
		Button button20 = new Button("New button");
		button20.setText("Lecture 10");
		verticalPanel_1.add(button20);
		button20.setWidth("81");
		
		Button button21 = new Button("New button");
		button21.setText("Lecture 11");
		verticalPanel_1.add(button21);
		button21.setSize("81", "28");
		
		Button button22 = new Button("New button");
		button22.setText("Lecture 12");
		verticalPanel_1.add(button22);
		button22.setSize("81", "28");
		flexTable.getCellFormatter().setHorizontalAlignment(3, 2, HasHorizontalAlignment.ALIGN_CENTER);
		flexTable.getCellFormatter().setVerticalAlignment(3, 2, HasVerticalAlignment.ALIGN_MIDDLE);
		flexTable.getCellFormatter().setHorizontalAlignment(3, 0, HasHorizontalAlignment.ALIGN_CENTER);
		flexTable.getFlexCellFormatter().setColSpan(0, 0, 3);
		flexTable.getCellFormatter().setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_CENTER);
		flexTable.getCellFormatter().setHorizontalAlignment(2, 0, HasHorizontalAlignment.ALIGN_CENTER);
		flexTable.getCellFormatter().setHorizontalAlignment(2, 2, HasHorizontalAlignment.ALIGN_CENTER);
		
	}

}
